import requests from "./base";

//账号登陆
export const setup = (userInfo: userInfo) => requests.post("/user/login", userInfo)

// 获取账号列表
export const getAccount = (pageData?: PageData) => requests.get(`/employee/page?page=${pageData?.page||1}&pageSize=${pageData?.pageSize||9999}&name=${pageData?.name||''}`)

//添加账号
export const addAccount = (AccountInfo: addAccountType) => requests.post("/employee", AccountInfo)

//修改账号
export const updateAccount = (AccountInfo: addAccountType) => requests.put("/employee", AccountInfo)